<script>
export default {
    onLaunch(options) {
        console.log('onLoad', options)
        if (options.query && options.query.user_id) {
            this.$store.commit('setUserId', options.query.user_id)
        } else if (options.query && options.query.user_id === '') {
            this.$store.commit('logout')
        }
        // this.$http('get|api/User/index').then(res => {
        //     this.$store.dispatch('set_user', res.result.users)
        // })
    },
    onShow: function() {
        // console.log('App Show')
    },
    onHide: function() {
        // console.log('App Hide')
    }
}
</script>

<style lang="scss">
@import '/globe/index.scss';

/* #ifdef APP-PLUS */
page {
    --theme: #4e6ef3;
}
/* #endif */
/* #ifdef H5 */
page {
    --theme: #00be5f;
}
/* #endif */

.ios-btm {
    height: 20rpx;
    height: constant(safe-area-inset-bottom);
    /* 兼容 iOS < 11.2 */
    height: env(safe-area-inset-bottom);
    /* 兼容 iOS >= 11.2 */
}
</style>
